<template>
  <div class="head">
    <div class="head_img left">
      <a href="###">
        <img
          src="https://dig.chouti.com/images/logo-c30a1a3941.png"
          alt=""
          class="head_img1"
        />
        <img
          src="https://dig.chouti.com/images/logo_txt-06bb1545d4.png"
          alt=""
          class="head_img2"
        />
      </a>
    </div>
    <ul class="left">
      <li v-for="(item, index) in arr" :key="index">
        <!-- 跳转建议加个 nav-link -->
        {{ item.name }}
      </li>
    </ul>
    <a href="###" class="right login btn"> 登录 </a>
    <a href="###" class="right publish btn">
      <img src="https://dig.chouti.com/images/publish-8b6a56e521.png" alt="" />
    </a>
    <div class="right head_input">
      <input type="text" placeholder="搜索" />
      <span></span>
    </div>
    <div class="clear"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [
        {
          name: "首页",
          to: "home",
          num:0
        },
        {
          name: "专区",
          to: "",
          num:1
        },
        {
          name: "人类发布",
          to: "",
          num:2
        },
        {
          name: "视频",
          to: "",
          num:3
        },
        {
          name: "发现",
          to: "",
          num:4
        },
        {
          name: "话题",
          to: "",
          num:5
        },
      ],
    };
  },
};
</script>

<style lang='scss' scoped>
a {
  text-decoration: none;
}
.head {
  padding: 0 78px;
  box-sizing: border-box;
  background: white;
  height: 58px;
  .head_img {
    line-height: 58px;
    // display: inline-block;
    a {
      .head_img1 {
        margin-top: 10px;
        display: inline-block;
        height: 36px;
        width: 36px;
      }
      .head_img2 {
        margin-top: 17px;
        margin-left: 17px;
        width: 112px;
        height: 22px;
        position: relative;
        top: -7px;
      }
    }
  }
  ul {
    list-style: none;
    margin-left: 10px;
    // display: inline-block;
    // line-height: 58px;
    li {
      display: block;
      font-size: 14px;
      color: #4b4c4d;
      margin-left: 28px;
      padding: 17px 11px;
      border: solid 2px #fff;
      display: inline-block;
      font-weight: 700;
    }
  }
  .btn {
    text-align: center;
    border-radius: 2px;
    border: 1px solid #f8aa00;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    color: #f8aa00;
  }
  .login {
    margin-top: 9px;
    font-size: 14px;
    padding: 9px 22px;
    font-weight: 700;
  }
  .publish {
    margin-right: 35px;
    padding: 8px;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-top: 13px;
    background-color: #f8aa00;
    img {
      width: 14px;
      height: 14px;
      margin-right: 5px;
      position: relative;
      top: -1px;
    }
  }
  .head_input {
    width: 208px;
    height: 36px;
    line-height: 36px;
    margin-top: 10px;
    background-color: #f5f5f5;
    margin-right: 35px;
    position: relative;
    border-radius: 2px;
    input {
      margin-left: 10px;
      background-color: #f5f5f5;
      border: none;
      outline: 0;
      font-size: 14px;
    }
    span {
      display: inline-block;
      width: 18px;
      height: 18px;
      position: absolute;
      top: 8px;
      right: 12px;
      cursor: pointer;
      background-size: 100%;
      background-image: url(https://dig.chouti.com/images/search-7acb7b9349.png);
    }
  }
}
</style>